<template>
  <div>
    {{hello}}<a-button type="primary" @click="showDemo">demo</a-button>
  </div>
</template>

<script setup>
  import {ref} from 'vue'
  import { useRouter, useRoute } from 'vue-router'
  const hello= ref('hello world!');
  const router= useRouter();
  const route= useRoute();

  const showDemo= ()=>{

    router.push('/demo');
    console.log(router)

  }
</script>

<style>

</style>
